package com.bmft.task01.service;

import java.util.Map;

/**
 * This is table interface.
 * This class let user input message and call the method of AnimalDao.
 *
 * @author Jarvan
 * @version 1.0
 * @create 2020/9/26 10:44
 */
public interface AnimalService {
    /**
     * Input a int by scanner
     *
     * @return int
     */
    int inputInt();

    /**
     * input String by scanner.
     *
     * @return String that you input .
     */
    String inputString();

    /**
     * Return Map that you input the String format by json.
     *
     * @return Map that you input the String format by json.
     */
    Map<String, Object> inputMap();

    /**
     * Insert page table
     */
    void insert();

    /**
     * Delete page table
     */
    void delete();

    /**
     * Update page table
     */
    void update();


    /**
     * Return map of the animals.
     *
     * @return return map of the animals.
     */
    Map<String, Map<String, Object>> queryAnimals();

    /**
     * Query characteristics
     *
     * @param animalName animal name
     * @return map of a animal
     */
    Map<String, Object> queryCharacteristics(String animalName);

    /**
     * Display animals
     * @return
     */
    void displayAnimals();

    /**
     * Display characteristic of the animal name.
     *
     * @param animalName animal  name
     */
    void displayCharacteristics(String animalName);


}
